convert array object to int[] c#

87

convert array object to int[] c# -

object[] objarr = new object[] {1,2,3 };
int[] arr = objarr.Cast<int>().ToArray();

Comments

Submit
0 Comments